package POJO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.batch.BatchProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;

//@Component
@ConfigurationProperties(prefix = "people")


@Data  //get set
@ToString
@AllArgsConstructor //有参构造器
@NoArgsConstructor  //无参构造器
public class People {
    private String name;
    private int age;
    private Date birthday;
}
